package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 *
 * @author juran
 * @since 2022-07-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("operate_kill_spell_goods")
@ApiModel(value = "OperateKillSpellGoods对象", description = "秒杀关联产品表")
public class OperateKillSpellGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增id")
      @TableId(value = "id", type = IdType.AUTO)
    @Null
    private Integer id;

    @ApiModelProperty("秒杀订单id")
    @NotBlank
    private String killId;

    @ApiModelProperty("商品编号")
    private Integer goodsNo;

    @ApiModelProperty("秒杀价格/拼团价格")
    private BigDecimal price;

    @ApiModelProperty("秒杀数量/拼团人数")
    private Integer num;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("剩余秒杀数")
    private Integer lastnum;

    @ApiModelProperty("商品名")
    private String goodsName;
}
